/* 日志页面特定样式 */
.diary-header {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.diary-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.diary-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 日志内容区布局 */
.diary-content {
    padding: 50px 0;
}

.diary-content .container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* 主要内容区域 */
.diary-main {
    width: 100%;
}

.diary-entries {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.diary-entry {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.entry-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.mood {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.mood i {
    color: var(--primary-color);
}

.entry-date {
    font-size: 14px;
    color: var(--gray-color);
}

.entry-content {
    padding: 25px;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.entry-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.entry-photos {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.entry-photos img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.entry-photos img:hover {
    transform: scale(1.03);
}

.entry-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.entry-actions button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-color);
    transition: var(--transition);
}

.entry-actions button:hover {
    color: var(--dark-color);
}

.btn-like {
    color: var(--primary-color) !important;
}

.btn-like i {
    color: var(--primary-color);
}

.entry-comments {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-content {
    flex: 1;
}

.comment-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.comment-content p {
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray-color);
}

.add-comment {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-comment textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    resize: none;
    height: 60px;
    font-family: var(--font-family);
}

.add-comment textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

/* 新日志表单模态框 */
.diary-form {
    max-width: 100%;
}

.diary-form .form-group {
    margin-bottom: 20px;
}

.mood-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-selector .mood-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 30px;
    width: auto;
    height: auto;
}

.photo-upload {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .diary-content .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .entry-date {
        margin-left: 65px;
    }

    .entry-photos img {
        width: calc(50% - 5px);
        height: 120px;
    }
}

@media (max-width: 576px) {
    .entry-photos {
        flex-direction: column;
        gap: 10px;
    }

    .entry-photos img {
        width: 100%;
        height: 200px;
    }

    .mood-selector {
        grid-template-columns: repeat(3, 1fr);
    }
} 